package com.witsight.platform.config;

import java.util.TimeZone;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.witsight.platform.util.lang.DateUtil;

/**   
 * 说明：基础平台属性配置
 * @Title: PlaformCoreProperties.java 
 * @Package com.witsight.platform.config 
 * @See: {@link #PlaformCoreProperties()}
 * Copyright: Copyright (c) 2017
 * Company:sany huax witsight team by product
 * @author: penght  
 * @date: 2017年9月18日 下午4:47:45 
 * @version: V1.0
 *
 */
@ConfigurationProperties(prefix = "platform.core")
public class PlaformCoreProperties {
	// 默认日期的格式
	private String defaultDateFormat = DateUtil.DATETIME_TIME_ZONE_FORMAT;
	// 默认的系统用户
	private String sysUser = "admin";
	// 默认的系统角色
	private String sysRole= "ADMIN";
	// 默认时区
	private TimeZone timeZone = TimeZone.getDefault();
	//ad域认证地址
	private String adUrl = "";
	//ad域认证成功后的标识参数
	private String adSuccess="";
	
	public TimeZone getTimeZone() {
		return timeZone;
	}

	public void setTimeZone(String timeZone) {
		this.timeZone = TimeZone.getTimeZone(timeZone);
	}

	public String getSysUser() {
		return sysUser;
	}

	public void setSysUser(String sysUser) {
		this.sysUser = sysUser;
	}

	public String getSysRole() {
		return sysRole;
	}

	public void setSysRole(String sysRole) {
		this.sysRole = sysRole;
	}

	public String getDefaultDateFormat() {
		return defaultDateFormat;
	}

	public void setDefaultDateFormat(String defaultDateFormat) {
		this.defaultDateFormat = defaultDateFormat;
	}

	public String getAdUrl() {
		return adUrl;
	}

	public void setAdUrl(String adUrl) {
		this.adUrl = adUrl;
	}

	public String getAdSuccess() {
		return adSuccess;
	}

	public void setAdSuccess(String adSuccess) {
		this.adSuccess = adSuccess;
	}
}
